declare global {
    interface IBundleUrl {
        /**子包名 */
        bundleName: string,
        /**资源路径 */
        url: string,
        /**缓存关键字 */
        id: string,
    }
}

/**
 * 创建Bundle对象
 * @param url 路径
 * @param bundleName bundle名称
 * @param key 
 */
export function createBundleObject(url: string, bundleName: string, key?: string): IBundleUrl {
    let obj: IBundleUrl = Object.create(null);
    obj.bundleName = bundleName;
    obj.url = url;
    obj.id = `${bundleName}/${url}`;
    return obj;
}